home *** CD-ROM | disk | FTP | other *** search
/ The Programmer Disk / The Programmer Disk (Microforum).iso / xpro / vc / pro14 / cxref3a.doc < prev    next >
Encoding:
Text File  |  1993-10-16  |  31.2 KB  |  1,190 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.                                        C xref
  26.                        The C language cross reference utility.
  27.                           (c) 1992-1993 by David Archibald.
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.                                  _______
  37.                             ____|__     |                (R)
  38.                          --|       |    |-------------------
  39.                            |   ____|__  |  Association of
  40.                            |  |       |_|  Shareware
  41.                            |__|   o   |    Professionals
  42.                          -----|   |   |---------------------
  43.                               |___|___|    MEMBER
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                  C xref - C language cross-reference utility. v3.0a
  71.  
  72.  
  73.                                   Table of Contents
  74.  
  75.                     Introduction:
  76.                          What C xref does.....................101
  77.                          Registration and
  78.                          licensing information............... 102
  79.                          System requirements................. 103
  80.                     Program output:
  81.                          Global variables and constants...... 201
  82.                          Summary list of functions........... 202
  83.                          Verbose list of functions........... 203
  84.                          Function tree....................... 204
  85.                     Running C xref:
  86.                          The command line syntax............. 301
  87.                          The module names.................... 302
  88.                          The -x command...................... 303
  89.                          The -t command...................... 304
  90.                          The -s command...................... 305
  91.                          The -w command...................... 306
  92.                          The -l command...................... 307
  93.                          The -i command...................... 308
  94.                          The -n command...................... 309
  95.                          The -f command...................... 310
  96.                          The -o command...................... 311
  97.                     Command line examples.................... 312
  98.                     The reserved word file: RES_WORD.TXT..... 401
  99.                     What C xref ignores...................... 501
  100.                     Technical support........................ 601
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.                                     Page 1 of 17
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.                  C xref - C language cross-reference utility. v3.0a
  138.  
  139.  
  140.           101  What it does.
  141.  
  142.                C xref is a cross-reference utility program for the C
  143.                programming language. It will read any number of your C text
  144.                modules and send the following to standard output:
  145.  
  146.                o A list of the module's global variables and constants,
  147.                  along with the line numbers they appear on.
  148.                o A summary listing of the module's functions.
  149.                o A verbose list of all the module's functions that
  150.                  includes:
  151.                     - The name of the module it originates in.
  152.                     - Line of origin.
  153.                     - On what line numbers the function is referenced on,
  154.                          and by which modules.
  155.                     - What functions, and the modules they are in, it
  156.                          references.
  157.                     - What local and global variables appear in the
  158.                          function.
  159.                o A tree that displays all of the functions calling
  160.                  hierarchy.
  161.  
  162.           ---------------------------------------------------------------
  163.           Note: To send the output to your printer or to a file, use DOS
  164.                 redirection (i.e. cxref filename >LPT1, would send output
  165.                 to your printer).
  166.           ---------------------------------------------------------------
  167.  
  168.                A cross-reference listing can be helpful for:
  169.                     o Debugging. For example, it can tell you:
  170.                          - Which functions reference another.
  171.                          - What global variables are used in a function.
  172.                          - What functions use a certain variable.
  173.                     o Documenting your programs. It gives you a complete
  174.                       listing of your variables and functions, and where
  175.                       they are used.
  176.                     o Program maintenance and modification. A cross-
  177.                       reference listing makes following a program's flow
  178.                       easier, and will show which parts of a program will
  179.                       be affected by, for example, changing a "define"
  180.                       statement. This means less time wasted deciphering a
  181.                       program, and fewer bugs.
  182.  
  183.           C xref is not C++ compatible at this time, but it will ignore C++
  184.           keywords and comments (i.e. "//").
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.                                     Page 2 of 17
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.                  C xref - C language cross-reference utility. v3.0a
  204.  
  205.  
  206.           102  Registration and licensing information.
  207.  
  208.                C xref is a Shareware program, and copies of this program
  209.                and it's documentation may be freely distributed.
  210.  
  211.                C xref and this document are copyrighted and may not be
  212.                modified in any manner.
  213.  
  214.                You are licensed to use C xref for a thirty (30) day
  215.                evaluation period. Unregistered use of C xref after this
  216.                trial period is a violation of federal copyright laws.
  217.  
  218.                Individual copies may be licensed for $24.95 (see the
  219.                REGISTER.DOC file). You may access C xref through a network,
  220.                provided that site licenses have been obtained for all
  221.                workstations that will be using the software (see the
  222.                SITELICE.DOC file).
  223.  
  224.                After registering you will be sent the latest version of C
  225.                xref, and, as they become available, future updates.
  226.  
  227.                This program is produced by a member of the Association of
  228.                Shareware Professionals (ASP). ASP wants to make sure that
  229.                the shareware principle works for you. If you are unable to
  230.                resolve a shareware-related problem with an ASP member by
  231.                contacting the member directly, ASP may be able to help. The
  232.                ASP Ombudsman can help you resolve a dispute or problem with
  233.                an ASP member, but does not provide technical support for
  234.                members' products. Please write to the ASP Ombudsman at 545
  235.                Grover Road, Muskegon, MI 49442 or send a CompuServe message
  236.                via CompuServe Mail to ASP Ombudsman 70007,3536.
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.                                     Page 3 of 17
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.                  C xref - C language cross-reference utility. v3.0a
  270.  
  271.  
  272.                         Invoice/Registration Form For C xref
  273.  
  274.           Individual Registration fee                   $   24.95
  275.           (Prices guaranteed through December 1994)
  276.  
  277.                   Name:________________________________________________
  278.  
  279.                Company:________________________________________________
  280.  
  281.                Address:________________________________________________
  282.  
  283.                   City:________________________________________________
  284.  
  285.             State, Zip:________________________________________________
  286.  
  287.               Email address:___________________________________________
  288.  
  289.           Disk size:
  290.                    5 1/4:_____     3 1/2:_____    Either size:_____
  291.  
  292.           Ordering by check: Send this form and a check to:
  293.                          DA Software
  294.                          3717 Aldon Lane
  295.                          Flint, MI 48506
  296.  
  297.           Ordering with CompuServe's Software Registration Service:
  298.                          Enter GO SWREG at the ! prompt and follow the
  299.                          menus. C xref's registration ID is 1394.
  300.  
  301.           Ordering by credit card: Call or send your Visa/MasterCard order
  302.           to (Please refer to product number: V328):
  303.                          Software Excitement!
  304.                          6475 Crater Lake Hwy.
  305.                          Central Point, OR 97502
  306.                          (800) 444-5457 or (503)826-8082
  307.                          CIS Email: 71203.1301
  308.  
  309.           Card number:_______________________  Exp. date:_________
  310.  
  311.           Signature:_________________________________
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.                                     Page 4 of 17
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.                  C xref - C language cross-reference utility. v3.0a
  336.  
  337.  
  338.           103  System requirements.
  339.  
  340.                Config.sys file:
  341.  
  342.                     C xref can use up to 60 file handles. When cross-
  343.                     referencing "include" files (see the "-i" command,
  344.                     section 308) the recommended minimum number of
  345.                     available handles is 20.
  346.  
  347.                     You can change the number of available handles by
  348.                     modifying the "file" statement in your config.sys file.
  349.                     For example, to make 20 file handles available, use
  350.                     EDIT, or another ASCII text editor, and change the
  351.                     "file" statement to read "file=20".
  352.  
  353.                Memory limits:
  354.  
  355.                     There is no minimum memory, but the number of modules
  356.                     you can cross-reference is dependent on the amount of
  357.                     memory you have. (Expanded and extended memory use are
  358.                     not supported at this time.)
  359.  
  360.                     The majority of the program data is stored in a
  361.                     temporary file created by C xref, but some data remains
  362.                     in memory (mostly global variables and function names).
  363.                     If C xref runs out of memory it will output an error
  364.                     message to this effect, and terminate.
  365.  
  366.                     If you do run out of memory, and you are using the "-i"
  367.                     command (which cross-references the standard header
  368.                     files along with your modules), then try it without
  369.                     this command. The standard header files have a large
  370.                     number of global defines and variables which are not
  371.                     stored in the temporary file, but remain in memory.
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.                                     Page 5 of 17
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.                  C xref - C language cross-reference utility. v3.0a
  402.  
  403.  
  404.           201  Global variables and constants.
  405.  
  406.                C xref assumes that anything declared outside a function's
  407.                boundaries (from the function name to the function's closing
  408.                brace) is a global variable or constant.
  409.  
  410.                The global variable and constant cross-reference has the
  411.                following format:
  412.  
  413.           variable name [type]
  414.                {module name}  what line numbers the variable appears on in
  415.                               this the module.
  416.  
  417.                Sample output:
  418.  
  419.                char_pnt [char]
  420.                  {example.c   }    1
  421.                  {explfile.c  }    10   11   16   28   35   42
  422.                cnt [int]
  423.                  {example.c   }    4    11   32
  424.                  {explfile.c  }    8    14
  425.  
  426.           ---------------------------------------------------------------
  427.           Note: a variable, constant, or a function is tagged as [unknown]
  428.           when it's data type is not known.
  429.           ---------------------------------------------------------------
  430.  
  431.           202  Summary list of functions.
  432.  
  433.                The summary list has the following format:
  434.  
  435.           {module name}  :  line-of-origin  :  function name() [type]
  436.  
  437.           ---------------------------------------------------------------
  438.           Note: a line-of-origin of [NONE] indicates that the function was
  439.           reference, but it did not appear any of the modules cross-
  440.           referenced.
  441.           ---------------------------------------------------------------
  442.                Sample output:
  443.  
  444.                {example.c   }  :    [NONE]   :    getch()  [int]
  445.                {explfile.c  }  :     32      :    is_it_a_comma()  [int]
  446.                {example.c   }  :     7       :    main()  [void]
  447.                {explfile.c  }  :     39      :    not_comma()  [char]
  448.                {example.c   }  :     25      :    open_file()  [FILE]
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.                                     Page 6 of 17
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.                  C xref - C language cross-reference utility. v3.0a
  468.  
  469.  
  470.           203  Verbose list of functions.
  471.  
  472.                The verbose list of functions has the following format:
  473.  
  474.           ---------------------------------------------------------------
  475.           Note: only those functions that have a line-of-origin are listed.
  476.           ---------------------------------------------------------------
  477.  
  478.           =================================================================
  479.                function name   [type]  :   {module name}  :  line-of-origin
  480.           =================================================================
  481.           USERS:
  482.                     {module name}  what line numbers in this module
  483.                                    reference this function.
  484.           -----------------------------------------------------------------
  485.                   CALLS:
  486.                    {module name}   function name()   {module}    function()
  487.           -----------------------------------------------------------------
  488.                   LOCAL VARIABLES:
  489.                     variable name [type]
  490.                          what line numbers in this function it appears on.
  491.           -----------------------------------------------------------------
  492.                   GLOBAL VARIABLES:
  493.                     variable name [type]
  494.                          what line numbers in this function it appears on.
  495.  
  496.                USERS are a list of the line numbers in a module that
  497.                reference this function.
  498.  
  499.                CALLS are other functions that this function references.
  500.  
  501.           ---------------------------------------------------------------
  502.           Note: A function name is truncated if it is over 20 characters
  503.           long. When this occurs, the truncated name will be followed by an
  504.           ellipsis of three periods.
  505.           [i.e. {filename.c  }Very_very_long_na...()]
  506.           ---------------------------------------------------------------
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.                                     Page 7 of 17
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.                  C xref - C language cross-reference utility. v3.0a
  534.  
  535.  
  536.                LOCAL VARIABLES are any variable or constant that falls
  537.                between a function's name and it's closing brace.
  538.  
  539.           ---------------------------------------------------------------
  540.           Note: As with your C compiler, when a local and global variable
  541.           have the same name, the global variable is hidden, and all line
  542.           numbers that it appears on are assigned to the local variable.
  543.           Also, if it is declared with a unknown specifier type (for
  544.           example, a typedef from a header file that was not cross-
  545.           referenced) it will be processed as a global variable.
  546.           ---------------------------------------------------------------
  547.  
  548.                GLOBAL VARIABLES are a list of any global variables or
  549.                constants that appear in this function. (This section is
  550.                suppressed when a function does not use any global
  551.                variables.)
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.                                     Page 8 of 17
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.                  C xref - C language cross-reference utility. v3.0a
  600.  
  601.  
  602.                Sample verbose output:
  603.  
  604.           =================================================================
  605.           main()  [void] : {example.c} : 7
  606.           =================================================================
  607.           USERS:  [NONE]
  608.           -----------------------------------------------------------------
  609.              CALLS:
  610.              {example.c   }  close_file()  {explfile.c  }   not_comma()
  611.              {example.c   }   get_input()  {example.c   }   open_file()
  612.           -----------------------------------------------------------------
  613.              LOCAL VARIABLES:
  614.                argc [int]
  615.                   7    10
  616.                argv [char]
  617.                   7    9
  618.                column [int]
  619.                   13   19
  620.                file_name [char]
  621.                   12   17
  622.                file_pnt [FILE]
  623.                   14   18   21
  624.                row [int]
  625.                   13   19
  626.           -----------------------------------------------------------------
  627.              GLOBAL VARIABLES:
  628.                cnt [int]
  629.                   11
  630.           =================================================================
  631.           not_comma()  [char] : {explfile.c} : 39
  632.           =================================================================
  633.           USERS:
  634.                   {explfile.c  }  13
  635.           -----------------------------------------------------------------
  636.              CALLS:  [NONE]
  637.           -----------------------------------------------------------------
  638.              LOCAL VARIABLES:
  639.                [NONE]
  640.           -----------------------------------------------------------------
  641.              GLOBAL VARIABLES:
  642.              char_pnt [char]
  643.                   42
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.                                     Page 9 of 17
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.                  C xref - C language cross-reference utility. v3.0a
  666.  
  667.  
  668.           204  Function tree.
  669.  
  670.                The function tree option generates a tree representation of
  671.                all of the module's function calls (or more simply stated:
  672.                who's calling who).
  673.  
  674.                The following is a sample tree for two modules:
  675.  
  676.                example.c  :main
  677.                example.c  :|_close_file
  678.                example.c  :|_output_char
  679.                example.c  :|_get_input
  680.                explfile.c :|  |_not_comma
  681.                explfile.c :|  |_is_it_a_comma
  682.                explfile.c :|    |_is_it_a_comma*
  683.                           :|
  684.                example.c  :|_open_file
  685.  
  686.           ---------------------------------------------------------------
  687.           Note: An '*' following a function name indicates that this is a
  688.           recursive function call.
  689.           ---------------------------------------------------------------
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.                                     Page 10 of 17
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.                  C xref - C language cross-reference utility. v3.0a
  732.  
  733.  
  734.           301  The command line syntax.
  735.  
  736.                cxref [-x -t -i[p path;path...] -n -s -w -l] sourcefilespec1
  737.                [sourcefilespec2...]
  738.  
  739.           ---------------------------------------------------------------
  740.           Note: A space must separate each command and source file name.
  741.           Also, C xref is not case sensitive, so commands can be entered as
  742.           upper or lower case letters.
  743.           ---------------------------------------------------------------
  744.  
  745.           302  Module names.
  746.  
  747.                C xref will accept any legal DOS file name. Standard DOS
  748.                pattern checking is supported ('?' and '*').
  749.  
  750.           ---------------------------------------------------------------
  751.           Note: Also, your text modules must be free of syntax errors,
  752.           otherwise the resulting output can be unpredictable.
  753.           ---------------------------------------------------------------
  754.  
  755.           303  The -x command.
  756.  
  757.                The 'x' command suppresses output of the function tree.
  758.  
  759.           304  The -t command.
  760.  
  761.                The 't' command suppresses output of everything except the
  762.                function tree.
  763.  
  764.           305  The -s command.
  765.  
  766.                The 's' command suppresses all output except the function
  767.                summary.
  768.  
  769.           306  The -w command.
  770.  
  771.                The default line width for output is 80 characters, but with
  772.                the 'w' command you can set the line width to 132 characters
  773.                (useful if you have a wide carriage printer).
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.                                     Page 11 of 17
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.                  C xref - C language cross-reference utility. v3.0a
  798.  
  799.  
  800.           307  The -l command.
  801.  
  802.                The 'l' command gives you an easy way to add identifiers
  803.                (function names, and global variables and defines) from your
  804.                cross-referenced modules to the RES_WORD.TXT file (C xref
  805.                ignores anything in a module that appears in this file. See
  806.                section 401). The cross-reference listing is suppressed when
  807.                this command is entered.
  808.  
  809.                The identifiers are displayed one at a time, and you can
  810.                choose one of three options:
  811.                     o Press 'a' to add the item to the RES_WORD.TXT file.
  812.                     o Press 'q' to quit and stop adding to the file.
  813.                     o Press any other key to skip the item.
  814.  
  815.           308  The -i command.
  816.  
  817.                The 'i' command lets you cross-reference the "include" files
  818.                in your modules. This command only cross-references include
  819.                files enclosed in "<>".
  820.  
  821.                C xref keeps track of the include file names so that each
  822.                file is cross-referenced only once. It will cross-reference
  823.                nested include files up to 60 files deep, or to the limit of
  824.                file handles in your config.sys file.
  825.  
  826.                C xref always looks in the current directory (i.e. the
  827.                directory in which the current module is located) for
  828.                include files, but you can enter alternate path names. For
  829.                example:
  830.  
  831.                     -ip c:\dos\;c:\prg\text\
  832.  
  833.                Each path name must be separate by a ";" (no spaces) and the
  834.                -i command must be followed by a "p" (if you are not
  835.                entering an alternate path name, then do not include the
  836.                "p").
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.                                     Page 12 of 17
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.                  C xref - C language cross-reference utility. v3.0a
  864.  
  865.  
  866.           309  The -n command.
  867.  
  868.                By default, C xref cross-references include files enclosed
  869.                in double quotes (i.e. #include "mydef.h"), but you can
  870.                disable this with the '-n' command. C xref searches the
  871.                current directory for the include file, but if it is not
  872.                found, and the '-i' command was entered, it will search any
  873.                alternate path names that follow it.
  874.  
  875.           ---------------------------------------------------------------
  876.           Note: If you use identifiers in place of file names in your
  877.           include statements, then C xref can not cross-reference them. For
  878.           example:
  879.                #define F_NAME "mydef.h"
  880.                #include F_NAME          /* won't cross-reference! */
  881.           ---------------------------------------------------------------
  882.  
  883.           310  The -f command.
  884.  
  885.                This command allows you to format the verbose function
  886.                output with linefeeds and formfeeds. The format line uses
  887.                C's standard newline and formfeed commands. For example:
  888.  
  889.                     -f \n\n\n
  890.  
  891.                or
  892.  
  893.                     -f \f
  894.  
  895.                The first example would output three newlines between each
  896.                function's cross-reference listing. The second example would
  897.                output a formfeed after each function, placing each
  898.                function's cross-reference listing on a separate page.
  899.  
  900.                The only formatting commands that are recognized are the
  901.                newline and formfeed commands, and there must be a space
  902.                between the '-f' command and the format string. No spaces
  903.                may appear in the formatting string.
  904.  
  905.           311  The -o command.
  906.  
  907.                By default, C xref does not output a listing in the verbose
  908.                section for functions that do not have a line-of-origin.
  909.                The '-o' command will cause all functions to be listed in the
  910.                verbose section, whether they have a line-of-origin or not.
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.                                     Page 13 of 17
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.                  C xref - C language cross-reference utility. v3.0a
  930.  
  931.  
  932.           312  Command line examples.
  933.  
  934.                cxref -ip c:\dos\;c:\prg\text\ -w mod??.c
  935.  
  936.                This command line will:
  937.                o Output a complete cross-reference listing.
  938.                o Cross-reference all include files,and will look for them
  939.                  in the module's directory, and the "c:\dos\" and
  940.                  "c:\prg\text\" directories.
  941.                o Output in 132 column width.
  942.                o Cross-reference any file that matches the file name
  943.                  pattern "mod??.c".
  944.  
  945.                cxref -t -l -f \f c:\prg\*.c a:\text\bigprg?.*
  946.  
  947.                This command line will:
  948.                o Only output a function tree.
  949.                o Output the global and function identifiers and give you
  950.                  the opportunity to add them to the RES_WORD.TXT file.
  951.                o Output a formfeed after each function in the verbose
  952.                  listing.
  953.                o Cross-reference all files in the paths "c:\prg\*.c" and
  954.                  "a:\text\bigprg?.*" that match the name patterns "*.c"
  955.                  and "bigprg?.*".
  956.  
  957.           ---------------------------------------------------------------
  958.           Note: if you run C xref with an empty command line (i.e. cxref
  959.           <CR>) you will get a short description of the command switches.
  960.           ---------------------------------------------------------------
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.                                     Page 14 of 17
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.                  C xref - C language cross-reference utility. v3.0a
  996.  
  997.  
  998.           401  The reserved word file: RES_WORD.TXT
  999.  
  1000.                If C xref included references to C function calls (printf,
  1001.                etc.) or it's reserved words, the output would soon become
  1002.                pretty long and messy.
  1003.  
  1004.                To prevent this, C xref reads RES_WORD.TXT when executed,
  1005.                which contains a list of words it will ignore when cross-
  1006.                referencing the C modules.
  1007.  
  1008.                RES_WORD.TXT is an ASCII file that you can customize with
  1009.                the following limitations:
  1010.                     o Each entry must be separated by a newline.
  1011.                     o line length is limited to 80 characters.
  1012.  
  1013.                Comments can be added or an entry "rem"ed out by inserting
  1014.                an "*" in the first column (the '*' MUST be in the first
  1015.                column).
  1016.  
  1017.                Asterisks can also be used with the entries as a wildcard
  1018.                character in the same way they are used in DOS filenames.
  1019.                This lets you specify entire groups of words to be ignored.
  1020.                For example with the entries:
  1021.  
  1022.                     foo*
  1023.                     global_*
  1024.  
  1025.                any word that begins with "foo" or "global_" is ignored.
  1026.  
  1027.                The RES_WORD.TXT file included with C xref has all of C's
  1028.                and C++'s reserved words and function calls. It also
  1029.                includes the function calls and defines from Borland C++,
  1030.                and WINDOWS.H and WINDOWSX.H. (The Windows' entries use
  1031.                about 30K of program memory, so if you do not program in
  1032.                Windows, you may want to delete them and make that memory
  1033.                available for program execution.)
  1034.  
  1035.                The RES_WORD.TXT file must be in the same directory as C
  1036.                xref.
  1037.  
  1038.           ---------------------------------------------------------------
  1039.           Note: with the unregistered version of C xref, the RES_WORD.TXT
  1040.           file must be on a non-write protected disk. C xref modifies this
  1041.           file and it will not run if the file is write protected.
  1042.           ---------------------------------------------------------------
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.                                     Page 15 of 17
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.                  C xref - C language cross-reference utility. v3.0a
  1062.  
  1063.  
  1064.           501  What C xref ignores.
  1065.  
  1066.                C xref ignores:
  1067.  
  1068.                o Anything enclosed by single or double quotes.
  1069.                o All comments (both "/*...*/" and "//").
  1070.                o Anything that matches the contents of the RES_WORD.TXT
  1071.                  file.
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.                                     Page 16 of 17
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.                  C xref - C language cross-reference utility. v3.0a
  1128.  
  1129.  
  1130.           601 Technical support.
  1131.  
  1132.                Telephone support will be provided to registered users for
  1133.                three months following registration. Unlimited support is
  1134.                available by e-mail and US mail.
  1135.  
  1136.                Bugs will be fixed for free for one year following
  1137.                registration, if possible. If not, a full refund will be
  1138.                offered. A written description of the bug, and a copy of
  1139.                your program file are essential to enable me to duplicate
  1140.                the problem.
  1141.  
  1142.                Support will be provided to non-registered users and users
  1143.                beyond the free support period on a time and materials
  1144.                basis.
  1145.  
  1146.                Question, problems or bug reports may be addressed to:
  1147.  
  1148.                By US mail:
  1149.                          David Archibald
  1150.                          DA Software
  1151.                          P.O. Box xxxx
  1152.                          Flint, MI 48506
  1153.                          U.S.A.
  1154.  
  1155.                By telephone:
  1156.                          313-736-0239
  1157.                          Monday-Friday 5:00PM-9:00PM
  1158.                          Saturday and Sunday 10:00AM-5:00PM.
  1159.  
  1160.                By e-mail:
  1161.                          CompuServe: 71573,616
  1162.                          Internet: 71573.616@compuserve.com
  1163.  
  1164.                If you have any question please do not hesitate to ask them.
  1165.                The quickest response will be had in the following order:
  1166.                Telephone, e-mail (I check for mail at least once a week),
  1167.                and US mail.
  1168.  
  1169.                If you contact me by e-mail or US mail, please include a
  1170.                telephone number where you can be reached in case I need
  1171.                further information.
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.                                     Page 17 of 17
  1187.  
  1188.  
  1189.  
  1190.